.class public Lcom/bitauto/autoeasy/selectcar/Object/BrandTypeParser;
.super Ljava/lang/Object;
.source "BrandTypeParser.java"


# instance fields
.field private final ALLSPELL:Ljava/lang/String;

.field private final CAR:Ljava/lang/String;

.field private final CARID:Ljava/lang/String;

.field private final CARNAME:Ljava/lang/String;

.field private final CARYEAR:Ljava/lang/String;

.field private final CBNAME:Ljava/lang/String;

.field private final CSDEFECT:Ljava/lang/String;

.field private final CSGUESTFUELCOST:Ljava/lang/String;

.field private final CSKOUBEICOUNT:Ljava/lang/String;

.field private final CSLEVEL:Ljava/lang/String;

.field private final CSOFFICIALFUELCOST:Ljava/lang/String;

.field private final CSPIC:Ljava/lang/String;

.field private final CSPICCOUNT:Ljava/lang/String;

.field private final CSPRICERANGE:Ljava/lang/String;

.field private final CSREFERPRICE:Ljava/lang/String;

.field private final CSTRANSMISSIONTYPE:Ljava/lang/String;

.field private final CSVIRTUES:Ljava/lang/String;

.field private final ENERGYSUBSIDY:Ljava/lang/String;

.field private final ENGINEEXHAUST:Ljava/lang/String;

.field private final ID:Ljava/lang/String;

.field private final NAME:Ljava/lang/String;

.field private final RANG:Ljava/lang/String;

.field private final REFERPRICE:Ljava/lang/String;

.field private final SERIAL:Ljava/lang/String;

.field private final SHOWNAME:Ljava/lang/String;

.field private TAG:Ljava/lang/String;

.field private final YEAR:Ljava/lang/String;

.field private url:Ljava/lang/String;


# direct methods
.method public constructor <init>(Ljava/lang/String;)V
    .locals 1
    .parameter "url"

    .prologue
    .line 65
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 23
    const-string v0, "CarID"

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/Object/BrandTypeParser;->CARID:Ljava/lang/String;

    .line 25
    const-string v0, "CarName"

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/Object/BrandTypeParser;->CARNAME:Ljava/lang/String;

    .line 27
    const-string v0, "EnergySubsidy"

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/Object/BrandTypeParser;->ENERGYSUBSIDY:Ljava/lang/String;

    .line 29
    const-string v0, "rang"

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/Object/BrandTypeParser;->RANG:Ljava/lang/String;

    .line 31
    const-string v0, "ReferPrice"

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/Object/BrandTypeParser;->REFERPRICE:Ljava/lang/String;

    .line 32
    const-string v0, "AllSpell"

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/Object/BrandTypeParser;->ALLSPELL:Ljava/lang/String;

    .line 33
    const-string v0, "CbName"

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/Object/BrandTypeParser;->CBNAME:Ljava/lang/String;

    .line 35
    const-string v0, "CsDefect"

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/Object/BrandTypeParser;->CSDEFECT:Ljava/lang/String;

    .line 36
    const-string v0, "CsGuestFuelCost"

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/Object/BrandTypeParser;->CSGUESTFUELCOST:Ljava/lang/String;

    .line 37
    const-string v0, "CsKouBeiCount"

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/Object/BrandTypeParser;->CSKOUBEICOUNT:Ljava/lang/String;

    .line 39
    const-string v0, "CsLevel"

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/Object/BrandTypeParser;->CSLEVEL:Ljava/lang/String;

    .line 40
    const-string v0, "CsOfficialFuelCost"

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/Object/BrandTypeParser;->CSOFFICIALFUELCOST:Ljava/lang/String;

    .line 41
    const-string v0, "CsPic"

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/Object/BrandTypeParser;->CSPIC:Ljava/lang/String;

    .line 42
    const-string v0, "CsPicCount"

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/Object/BrandTypeParser;->CSPICCOUNT:Ljava/lang/String;

    .line 44
    const-string v0, "CsPriceRange"

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/Object/BrandTypeParser;->CSPRICERANGE:Ljava/lang/String;

    .line 46
    const-string v0, "CsReferPrice"

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/Object/BrandTypeParser;->CSREFERPRICE:Ljava/lang/String;

    .line 48
    const-string v0, "CsTransmissionType"

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/Object/BrandTypeParser;->CSTRANSMISSIONTYPE:Ljava/lang/String;

    .line 49
    const-string v0, "CsVirtues"

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/Object/BrandTypeParser;->CSVIRTUES:Ljava/lang/String;

    .line 51
    const-string v0, "EngineExhaust"

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/Object/BrandTypeParser;->ENGINEEXHAUST:Ljava/lang/String;

    .line 52
    const-string v0, "ID"

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/Object/BrandTypeParser;->ID:Ljava/lang/String;

    .line 53
    const-string v0, "Name"

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/Object/BrandTypeParser;->NAME:Ljava/lang/String;

    .line 54
    const-string v0, "ShowName"

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/Object/BrandTypeParser;->SHOWNAME:Ljava/lang/String;

    .line 56
    const-string v0, "Serial"

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/Object/BrandTypeParser;->SERIAL:Ljava/lang/String;

    .line 57
    const-string v0, "Car"

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/Object/BrandTypeParser;->CAR:Ljava/lang/String;

    .line 59
    const-string v0, "CarYear"

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/Object/BrandTypeParser;->CARYEAR:Ljava/lang/String;

    .line 60
    const-string v0, "Year"

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/Object/BrandTypeParser;->YEAR:Ljava/lang/String;

    .line 62
    const-string v0, ""

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/Object/BrandTypeParser;->url:Ljava/lang/String;

    .line 63
    const-string v0, "BrandTypeParser"

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/Object/BrandTypeParser;->TAG:Ljava/lang/String;

    .line 66
    iput-object p1, p0, Lcom/bitauto/autoeasy/selectcar/Object/BrandTypeParser;->url:Ljava/lang/String;

    .line 67
    return-void
.end method


# virtual methods
.method public Paser2Object()Lcom/bitauto/autoeasy/selectcar/Object/BrandType;
    .locals 20

    .prologue
    .line 71
    :try_start_0
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/bitauto/autoeasy/selectcar/Object/BrandTypeParser;->url:Ljava/lang/String;

    move-object/from16 v17, v0

    invoke-static/range {v17 .. v17}, Lcom/bitauto/autoeasy/tool/Caller;->doGet(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    .line 72
    .local v12, str:Ljava/lang/String;
    new-instance v9, Lorg/json/JSONObject;

    invoke-direct {v9, v12}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 73
    .local v9, jObject:Lorg/json/JSONObject;
    const-string v17, "SerialBasicInfo"

    move-object v0, v9

    move-object/from16 v1, v17

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v11

    .line 74
    .local v11, object:Lorg/json/JSONObject;
    if-eqz v11, :cond_2

    .line 75
    const-string v17, "CarList"

    move-object v0, v11

    move-object/from16 v1, v17

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v17

    if-nez v17, :cond_1

    .line 76
    new-instance v3, Lcom/bitauto/autoeasy/selectcar/Object/BrandType;

    invoke-direct {v3}, Lcom/bitauto/autoeasy/selectcar/Object/BrandType;-><init>()V

    .line 77
    .local v3, bType:Lcom/bitauto/autoeasy/selectcar/Object/BrandType;
    new-instance v15, Ljava/util/ArrayList;

    invoke-direct {v15}, Ljava/util/ArrayList;-><init>()V

    .line 78
    .local v15, yearList:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Ljava/lang/String;>;"
    new-instance v7, Ljava/util/HashMap;

    invoke-direct {v7}, Ljava/util/HashMap;-><init>()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_2
    .catch Lcom/bitauto/autoeasy/tool/WSError; {:try_start_0 .. :try_end_0} :catch_3

    .line 80
    .local v7, hashMap:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/util/ArrayList<Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;>;>;"
    :try_start_1
    const-string v17, "CarList"

    move-object v0, v11

    move-object/from16 v1, v17

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1
    .catch Lcom/bitauto/autoeasy/tool/WSError; {:try_start_1 .. :try_end_1} :catch_3

    move-result-object v4

    .line 82
    .local v4, carList:Lorg/json/JSONObject;
    :try_start_2
    const-string v17, "CarYear"

    move-object v0, v4

    move-object/from16 v1, v17

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v16

    .line 83
    .local v16, yearObj:Lorg/json/JSONObject;
    const-string v17, "Year"

    invoke-virtual/range {v16 .. v17}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v17

    move-object v0, v15

    move-object/from16 v1, v17

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 84
    new-instance v10, Ljava/util/ArrayList;

    invoke-direct {v10}, Ljava/util/ArrayList;-><init>()V

    .line 85
    .local v10, listCarSummary:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;>;"
    const-string v17, "Car"

    invoke-virtual/range {v16 .. v17}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v17

    move-object/from16 v0, p0

    move-object/from16 v1, v17

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/selectcar/Object/BrandTypeParser;->ToCarList(Lorg/json/JSONArray;)Ljava/util/ArrayList;

    move-result-object v10

    .line 89
    const-string v17, "Year"

    invoke-virtual/range {v16 .. v17}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v17

    move-object v0, v7

    move-object/from16 v1, v17

    move-object v2, v10

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0
    .catch Lcom/bitauto/autoeasy/tool/WSError; {:try_start_2 .. :try_end_2} :catch_3

    .line 102
    .end local v10           #listCarSummary:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;>;"
    .end local v16           #yearObj:Lorg/json/JSONObject;
    :cond_0
    :try_start_3
    invoke-virtual {v3, v15}, Lcom/bitauto/autoeasy/selectcar/Object/BrandType;->setYearlist(Ljava/util/ArrayList;)V

    .line 103
    invoke-virtual {v3, v7}, Lcom/bitauto/autoeasy/selectcar/Object/BrandType;->setHashMap(Ljava/util/HashMap;)V
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_1
    .catch Lcom/bitauto/autoeasy/tool/WSError; {:try_start_3 .. :try_end_3} :catch_3

    .line 108
    .end local v4           #carList:Lorg/json/JSONObject;
    :goto_0
    :try_start_4
    const-string v17, "Serial"

    move-object v0, v11

    move-object/from16 v1, v17

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v13

    .line 109
    .local v13, tempObj:Lorg/json/JSONObject;
    move-object/from16 v0, p0

    move-object v1, v13

    move-object v2, v3

    invoke-virtual {v0, v1, v2}, Lcom/bitauto/autoeasy/selectcar/Object/BrandTypeParser;->ToCarSum(Lorg/json/JSONObject;Lcom/bitauto/autoeasy/selectcar/Object/BrandType;)V
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_2
    .catch Lcom/bitauto/autoeasy/tool/WSError; {:try_start_4 .. :try_end_4} :catch_3

    move-object/from16 v17, v3

    .line 122
    .end local v3           #bType:Lcom/bitauto/autoeasy/selectcar/Object/BrandType;
    .end local v7           #hashMap:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/util/ArrayList<Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;>;>;"
    .end local v9           #jObject:Lorg/json/JSONObject;
    .end local v11           #object:Lorg/json/JSONObject;
    .end local v12           #str:Ljava/lang/String;
    .end local v13           #tempObj:Lorg/json/JSONObject;
    .end local v15           #yearList:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Ljava/lang/String;>;"
    :goto_1
    return-object v17

    .line 90
    .restart local v3       #bType:Lcom/bitauto/autoeasy/selectcar/Object/BrandType;
    .restart local v4       #carList:Lorg/json/JSONObject;
    .restart local v7       #hashMap:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/util/ArrayList<Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;>;>;"
    .restart local v9       #jObject:Lorg/json/JSONObject;
    .restart local v11       #object:Lorg/json/JSONObject;
    .restart local v12       #str:Ljava/lang/String;
    .restart local v15       #yearList:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Ljava/lang/String;>;"
    :catch_0
    move-exception v17

    move-object/from16 v5, v17

    .line 92
    .local v5, e:Ljava/lang/Exception;
    :try_start_5
    const-string v17, "CarYear"

    move-object v0, v4

    move-object/from16 v1, v17

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v14

    .line 93
    .local v14, yearArray:Lorg/json/JSONArray;
    const/4 v8, 0x0

    .local v8, i:I
    :goto_2
    invoke-virtual {v14}, Lorg/json/JSONArray;->length()I

    move-result v17

    move v0, v8

    move/from16 v1, v17

    if-ge v0, v1, :cond_0

    .line 94
    invoke-virtual {v14, v8}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v13

    .line 95
    .restart local v13       #tempObj:Lorg/json/JSONObject;
    new-instance v10, Ljava/util/ArrayList;

    invoke-direct {v10}, Ljava/util/ArrayList;-><init>()V

    .line 97
    .restart local v10       #listCarSummary:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;>;"
    const-string v17, "Car"

    move-object v0, v13

    move-object/from16 v1, v17

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v17

    .line 96
    move-object/from16 v0, p0

    move-object/from16 v1, v17

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/selectcar/Object/BrandTypeParser;->ToCarList(Lorg/json/JSONArray;)Ljava/util/ArrayList;

    move-result-object v10

    .line 98
    const-string v17, "Year"

    move-object v0, v13

    move-object/from16 v1, v17

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v17

    move-object v0, v15

    move-object/from16 v1, v17

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 99
    const-string v17, "Year"

    move-object v0, v13

    move-object/from16 v1, v17

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v17

    move-object v0, v7

    move-object/from16 v1, v17

    move-object v2, v10

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_5
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_1
    .catch Lcom/bitauto/autoeasy/tool/WSError; {:try_start_5 .. :try_end_5} :catch_3

    .line 93
    add-int/lit8 v8, v8, 0x1

    goto :goto_2

    .line 104
    .end local v4           #carList:Lorg/json/JSONObject;
    .end local v5           #e:Ljava/lang/Exception;
    .end local v8           #i:I
    .end local v10           #listCarSummary:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;>;"
    .end local v13           #tempObj:Lorg/json/JSONObject;
    .end local v14           #yearArray:Lorg/json/JSONArray;
    :catch_1
    move-exception v17

    move-object/from16 v5, v17

    .line 105
    .restart local v5       #e:Ljava/lang/Exception;
    const/16 v17, 0x0

    :try_start_6
    move-object v0, v3

    move-object/from16 v1, v17

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/selectcar/Object/BrandType;->setYearlist(Ljava/util/ArrayList;)V

    .line 106
    const/16 v17, 0x0

    move-object v0, v3

    move-object/from16 v1, v17

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/selectcar/Object/BrandType;->setHashMap(Ljava/util/HashMap;)V
    :try_end_6
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_2
    .catch Lcom/bitauto/autoeasy/tool/WSError; {:try_start_6 .. :try_end_6} :catch_3

    goto :goto_0

    .line 117
    .end local v3           #bType:Lcom/bitauto/autoeasy/selectcar/Object/BrandType;
    .end local v5           #e:Ljava/lang/Exception;
    .end local v7           #hashMap:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/util/ArrayList<Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;>;>;"
    .end local v9           #jObject:Lorg/json/JSONObject;
    .end local v11           #object:Lorg/json/JSONObject;
    .end local v12           #str:Ljava/lang/String;
    .end local v15           #yearList:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Ljava/lang/String;>;"
    :catch_2
    move-exception v17

    move-object/from16 v5, v17

    .line 118
    .restart local v5       #e:Ljava/lang/Exception;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/bitauto/autoeasy/selectcar/Object/BrandTypeParser;->TAG:Ljava/lang/String;

    move-object/from16 v17, v0

    new-instance v18, Ljava/lang/StringBuilder;

    const-string v19, "error :"

    invoke-direct/range {v18 .. v19}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v5}, Ljava/lang/Exception;->toString()Ljava/lang/String;

    move-result-object v19

    invoke-virtual/range {v18 .. v19}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v18

    invoke-virtual/range {v18 .. v18}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v18

    invoke-static/range {v17 .. v18}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 119
    const/16 v17, 0x0

    goto/16 :goto_1

    .line 112
    .end local v5           #e:Ljava/lang/Exception;
    .restart local v9       #jObject:Lorg/json/JSONObject;
    .restart local v11       #object:Lorg/json/JSONObject;
    .restart local v12       #str:Ljava/lang/String;
    :cond_1
    const/16 v17, 0x0

    goto/16 :goto_1

    .line 115
    :cond_2
    const/16 v17, 0x0

    goto/16 :goto_1

    .line 120
    .end local v9           #jObject:Lorg/json/JSONObject;
    .end local v11           #object:Lorg/json/JSONObject;
    .end local v12           #str:Ljava/lang/String;
    :catch_3
    move-exception v17

    move-object/from16 v6, v17

    .line 121
    .local v6, e1:Lcom/bitauto/autoeasy/tool/WSError;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/bitauto/autoeasy/selectcar/Object/BrandTypeParser;->TAG:Ljava/lang/String;

    move-object/from16 v17, v0

    new-instance v18, Ljava/lang/StringBuilder;

    const-string v19, "error :"

    invoke-direct/range {v18 .. v19}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v6}, Lcom/bitauto/autoeasy/tool/WSError;->getMessage()Ljava/lang/String;

    move-result-object v19

    invoke-virtual/range {v18 .. v19}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v18

    invoke-virtual/range {v18 .. v18}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v18

    invoke-static/range {v17 .. v18}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 122
    const/16 v17, 0x0

    goto/16 :goto_1
.end method

.method public ToCarList(Lorg/json/JSONArray;)Ljava/util/ArrayList;
    .locals 6
    .parameter "carArray"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lorg/json/JSONArray;",
            ")",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;",
            ">;"
        }
    .end annotation

    .prologue
    const-string v5, "\u6682\u65e0"

    const-string v5, "rang"

    const-string v5, "ReferPrice"

    .line 133
    :try_start_0
    new-instance v4, Ljava/util/ArrayList;

    invoke-direct {v4}, Ljava/util/ArrayList;-><init>()V

    .line 134
    .local v4, temp:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;>;"
    const/4 v2, 0x0

    .local v2, i:I
    :goto_0
    invoke-virtual {p1}, Lorg/json/JSONArray;->length()I

    move-result v5

    if-lt v2, v5, :cond_0

    move-object v5, v4

    .line 155
    .end local v2           #i:I
    .end local v4           #temp:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;>;"
    :goto_1
    return-object v5

    .line 135
    .restart local v2       #i:I
    .restart local v4       #temp:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;>;"
    :cond_0
    invoke-virtual {p1, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v3

    .line 136
    .local v3, obj:Lorg/json/JSONObject;
    new-instance v0, Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;

    invoke-direct {v0}, Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;-><init>()V

    .line 137
    .local v0, car:Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;
    const-string v5, "CarID"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I

    move-result v5

    invoke-virtual {v0, v5}, Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;->setCarID(I)V

    .line 138
    const-string v5, "CarName"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v0, v5}, Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;->setCarName(Ljava/lang/String;)V

    .line 139
    const-string v5, "EnergySubsidy"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v0, v5}, Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;->setEnergySubsidy(Ljava/lang/String;)V

    .line 140
    const-string v5, "rang"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/String;->length()I

    move-result v5

    if-lez v5, :cond_1

    .line 141
    const-string v5, "rang"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v0, v5}, Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;->setRang(Ljava/lang/String;)V

    .line 145
    :goto_2
    const-string v5, "ReferPrice"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/String;->length()I

    move-result v5

    if-lez v5, :cond_2

    .line 146
    const-string v5, "ReferPrice"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v0, v5}, Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;->setReferPrice(Ljava/lang/String;)V

    .line 150
    :goto_3
    invoke-virtual {v4, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 134
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    .line 143
    :cond_1
    const-string v5, "\u6682\u65e0"

    invoke-virtual {v0, v5}, Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;->setRang(Ljava/lang/String;)V
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_2

    .line 153
    .end local v0           #car:Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;
    .end local v2           #i:I
    .end local v3           #obj:Lorg/json/JSONObject;
    .end local v4           #temp:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;>;"
    :catch_0
    move-exception v5

    move-object v1, v5

    .line 154
    .local v1, e:Lorg/json/JSONException;
    invoke-virtual {v1}, Lorg/json/JSONException;->printStackTrace()V

    .line 155
    const/4 v5, 0x0

    goto :goto_1

    .line 148
    .end local v1           #e:Lorg/json/JSONException;
    .restart local v0       #car:Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;
    .restart local v2       #i:I
    .restart local v3       #obj:Lorg/json/JSONObject;
    .restart local v4       #temp:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;>;"
    :cond_2
    :try_start_1
    const-string v5, "\u6682\u65e0"

    invoke-virtual {v0, v5}, Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;->setReferPrice(Ljava/lang/String;)V
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_3
.end method

.method public ToCarSum(Lorg/json/JSONObject;Lcom/bitauto/autoeasy/selectcar/Object/BrandType;)V
    .locals 2
    .parameter "obj"
    .parameter "bType"

    .prologue
    .line 162
    :try_start_0
    const-string v1, "ID"

    invoke-virtual {p1, v1}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {p2, v1}, Lcom/bitauto/autoeasy/selectcar/Object/BrandType;->setID(I)V

    .line 163
    const-string v1, "ShowName"

    invoke-virtual {p1, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p2, v1}, Lcom/bitauto/autoeasy/selectcar/Object/BrandType;->setShowName(Ljava/lang/String;)V

    .line 164
    const-string v1, "AllSpell"

    invoke-virtual {p1, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p2, v1}, Lcom/bitauto/autoeasy/selectcar/Object/BrandType;->setAllSpell(Ljava/lang/String;)V

    .line 165
    const-string v1, "CbName"

    invoke-virtual {p1, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p2, v1}, Lcom/bitauto/autoeasy/selectcar/Object/BrandType;->setCbName(Ljava/lang/String;)V

    .line 166
    const-string v1, "CsPic"

    invoke-virtual {p1, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p2, v1}, Lcom/bitauto/autoeasy/selectcar/Object/BrandType;->setCsPic(Ljava/lang/String;)V

    .line 167
    const-string v1, "CsGuestFuelCost"

    invoke-virtual {p1, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p2, v1}, Lcom/bitauto/autoeasy/selectcar/Object/BrandType;->setCsGuestFuelCost(Ljava/lang/String;)V

    .line 169
    const-string v1, "CsLevel"

    invoke-virtual {p1, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p2, v1}, Lcom/bitauto/autoeasy/selectcar/Object/BrandType;->setCsLevel(Ljava/lang/String;)V

    .line 171
    const-string v1, "CsTransmissionType"

    invoke-virtual {p1, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p2, v1}, Lcom/bitauto/autoeasy/selectcar/Object/BrandType;->setCsTransmissionType(Ljava/lang/String;)V

    .line 173
    const-string v1, "EngineExhaust"

    invoke-virtual {p1, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p2, v1}, Lcom/bitauto/autoeasy/selectcar/Object/BrandType;->setEngineExhaust(Ljava/lang/String;)V

    .line 175
    const-string v1, "CsReferPrice"

    invoke-virtual {p1, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p2, v1}, Lcom/bitauto/autoeasy/selectcar/Object/BrandType;->setCsReferPrice(Ljava/lang/String;)V
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    .line 180
    :goto_0
    return-void

    .line 176
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 177
    .local v0, e:Lorg/json/JSONException;
    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_0
.end method
